package cn.jiadakeji.parent.mapper;

import cn.jiadakeji.parent.domain.TermTimeCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author heyanfeng
 * @create 2022-03-11 15:46
 */
@Mapper
public interface TermTimeCourseMapper extends BaseMapper<TermTimeCourse> {
    TermTimeCourse getNextCourseTime(@Param("now") LocalDateTime now, @Param("courseId") String courseId);


    TermTimeCourse getPreCourseTime(@Param("lastWeekEnd") Date lastWeekEnd, @Param("lastDay") Date lastDay, @Param("courseId") String courseId);

}
